package com.im.event;

import android.os.Bundle;

import com.core.sdk.core.BaseEvent;
import com.core.sdk.core.Location;
import com.im.event.UserRequestEvent.OPERATE;

public class UserResponseEvent extends BaseEvent {

	private static final long serialVersionUID = 1L;
	private OPERATE op = OPERATE.none;
	private Bundle bundle;
	private int responseCode = 0;
	
	public UserResponseEvent(Location to, OPERATE op) {
		super(to);
		this.op = op;
	}
	public OPERATE getOp() {
		return op;
	}
	public Bundle getBundle() {
		return bundle;
	}
	public void setBundle(Bundle bundle) {
		this.bundle = bundle;
	}
	public int getResponseCode() {
		return responseCode;
	}
	public void setResponseCode(int responseCode) {
		this.responseCode = responseCode;
	}


	public static final int RESPONSE_REG_SUC = 1;
	public static final int RESPONSE_REG_FAI = 2;
	public static final int RESPONSE_REG_EXISTS = 3;
	
	public static final int RESPONSE_LOGIN_SUC = 4;
	public static final int RESPONSE_LOGIN_FAI = 5;
}
